<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<h3>"Log In" subview</h3>

<c:if test="${not empty sessionScope.MESSAGES}">
  <c:forEach var='message' items='${sessionScope.MESSAGES}'>
    <ul>
      <li><b>Error: <c:out value='${message}'/></b></li>
    </ul>
  </c:forEach>
</c:if>

<form name="loginform" class="portlet" method="post" action="portlets/loginPortlet.jsp">
  <label for="username">Username:</label>
  <input type="text" name="username" value="" maxlength="20" size="20" class="datavalue partialsubmit"/><br/>

  <label for="password">Password:</label>
  <input type="text" name="password" value="" maxlength="20" size="20" class="datavalue"/><br/>

  <label></label>
  <span class="portlet"><input type="submit" name="loginEvent" value="Log In" class="pushbutton"/></span><br/>

  <label for="chb01">Remember:</label>
  <input class="partialsubmit" type="checkbox" name="remembername" id="chb01" ${rememberMe ? 'checked="checked"' : '' } />
</form>
<p><em>Username is "michael", password is "123".</em></p>
